import $axios from './index.js'

// 导航列表
function navList(data) {
  const url = '/nav/index'
  return $axios.get(url, data)
}
// 导航详情
function navInfo(data) {
  const url = '/nav/read'
  return $axios.get(url, data)
}
// 导航添加
function navSave(data) {
  const url = '/nav/save'
  return $axios.post(url, data)
}
// 导航编辑
function navUpdate(data) {
  const url = '/nav/update'
  return $axios.post(url, data)
}
// 导航删除
function navDelete(data) {
  const url = '/nav/delete'
  return $axios.post(url, data)
}

// 导航分类列表
function navCateList(data) {
  const url = '/navCate/index'
  return $axios.get(url, data)
}
// 导航分类详情
function navCateInfo(data) {
  const url = '/navCate/read'
  return $axios.get(url, data)
}
// 导航分类添加
function navCateSave(data) {
  const url = '/navCate/save'
  return $axios.post(url, data)
}
// 导航分类编辑
function navCateUpdate(data) {
  const url = '/navCate/update'
  return $axios.post(url, data)
}
// 导航分类删除
function navCateDelete(data) {
  const url = '/navCate/delete'
  return $axios.post(url, data)
}

export default {
  navList,
  navSave,
  navUpdate,
  navDelete,
  navInfo,
  navCateList,
  navCateSave,
  navCateUpdate,
  navCateDelete,
  navCateInfo

}
